const express = require('express');
const router = express.Router();
const upload = require('../config/multer'); // 引入 multer 配置
const { uploadImage } = require('../controllers/uploadController'); // 引入控制器

// 图片上传接口，支持上传最多 6 张图片
router.post('/upload-images', upload.array('files', 6), uploadImage); // `files` 是前端上传文件时的字段名

module.exports = router;


